#include <iostream>
#include "configloader.h"

int main(){
    ConfigLoader* config;
    try{
        config = new ConfigLoader("settings.cfg");
        config->Prase();

        std::cout<<config->getTableVar<int, int>("tablica", 0)<<std::endl;
        std::cout<<config->getTableVar<int, std::string>("test", "lol")<<std::endl;
        /*std::cout<<config->getVar<std::string>("zmienna1")<<std::endl;
        std::cout<<config->getVar<bool>("zmienna4")<<std::endl;*/
    }
    catch(std::string e){
        std::cout<<e<<std::endl;
    }

    delete config;
    std::cin.get();
    return 0;
}
